import {post_json,get,post} from '../../http/axios'
export default{
    namespaced:true,
    state:{
        commentData:[]
    },
    getters:{},
    mutations:{
        setCommentData(state,data){
            state.commentData=data
        }
    },
    actions:{
        async saveCommentData(context,params){
            let res = await post('/comment/saveOrUpdate',params)
        },
        async loadCommentData(context,params){
            let res = await get('/comment/findCommentByCus?cusId='+params)
            context.commit('setCommentData',res.data.list)
        },
    }
}